<!--
	If session variables are empty, check if cookie exists.
	If so, set session variables.
	If sPage = Default.php, redirect to MyProfile.php
-->

<?php
if (isset($_COOKIE["user"])){
  echo "Cookie: Welcome:" . $_COOKIE["user"] . "!<br>";
  session_start();
  echo "Session: Welcome:". $_SESSION['user']. "!!<br>";
  //if($sPage =="Default.php"){
  //header( 'Location: http://cs5339.cs.utep.edu/team1/Produce/MyTraders.php' );}
  }
  
else{
  echo "Welcome guest!<br>";
}



?>
